#include <iostream>
using namespace std;
class A{
private:
	int a;
public:
	A()
	{
		cout << "A构造" << endl;
	}
	~A()
	{
		cout << "A析构" << endl;
	}
};
class B{
private:
	int b;
public:
	B()
	{
		cout << "B构造" << endl;
	}
	~B()
	{
		cout << "B析构" << endl;
	}
	A a;
};
int main()
{
	B a;
	return 0;
}
